/**
 * 
 */
package com.jeecms.wicool.manager.tradeArea.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;

import com.jeecms.common.page.Pagination;
import com.jeecms.wicool.dao.tradearea.TradeAreaDao;
import com.jeecms.wicool.entity.tradearea.TradeArea;
import com.jeecms.wicool.manager.tradeArea.TradeAreaMng;

/**
 * @author Administrator
 *
 */
public class TradeAreaMngImpl implements TradeAreaMng {

	@Autowired
	private TradeAreaDao trradeAreaDao;
	
	@Override
	public Pagination getPage(String name, String city, String district,
			Integer kitchenId, int pageNo, int pageSize) {
		
		return trradeAreaDao.getPage(name, city, district, kitchenId, pageNo, pageSize);
	}

	@Override
	public TradeArea findById(Integer id) {
		return trradeAreaDao.findById(id);
	}

	@Override
	public TradeArea save(TradeArea obj) {
		return trradeAreaDao.save(obj);
	}

	@Override
	public TradeArea deleteById(Integer id) {
		return trradeAreaDao.deleteById(id);
	}

	@Override
	public List<TradeArea> deleteByIds(Integer[] ids) {
		return trradeAreaDao.deleteByIds(ids);
	}

	@Override
	public TradeArea update(TradeArea obj) {
		return trradeAreaDao.update(obj);
	}

	public List<TradeArea> getAll(){
		return trradeAreaDao.getAll();
	}

	@Override
	public List<TradeArea> getByKitchen(Integer kitchenId) {
		return trradeAreaDao.getByKitchen(kitchenId);
	}
}
